<%--
  Created by IntelliJ IDEA.
  User: nico
  Date: 31/07/12
  Time: 18:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<script type="text/javascript" src="<s:url value="/js/nav.js"/>"></script>
<script type="text/javascript" src="<s:url value="/js/jquery/jquery.collapse.js"/>"></script>


<s:url var="urlSaveCountry" action="saveCountry"  namespace="/Menu"/>
<s:url var="searchSiteURL" action="getSites"  namespace="/Protocols/Staff"/>
<br>
<h2 style="text-align: left; padding-left: 20px; color: #00579C;">Protocol: <s:property value="%{#session.protocoloId}"/></h2>
<table>
    <tr>
        <td>

            <div id="wrapper">
                <div id="general" class="accordionButton">General</div>
                <div id="contentGeneral" class="accordionContent">
                    <ul>
                        <li><s:a id="generalInformation" action="edit" namespace="/Protocols" onclick="saveCountry('%{urlSaveCountry}','')" >General Information</s:a></li>
                        <li><s:a id="countryCommitment" action="main" namespace="/Protocols/CountryCommitment" onclick="saveCountry('%{urlSaveCountry}','')" >Commitment</s:a></li>
                        <li><s:a id="globalVendorSelection" action="main" namespace="/Protocols/GlobalVendorSelection" onclick="saveCountry('%{urlSaveCountry}','')" >Global Vendor Selection</s:a></li>
                        <li><s:a id="protocolBudget" action="main" namespace="/Protocols/ProtocolBudget" onclick="saveCountry('%{urlSaveCountry}','')">Protocol Budget</s:a></li>
                    </ul>
                </div>

                <div id="argentina" class="accordionButton">Argentina <s:property value="%{#session.statusargentina}"/></div>
                <div id="contentArgentina" class="accordionContent">
                    <ul>
                        <li><s:a id="ar_staff" action="main" namespace="/Protocols/Staff" onclick="saveCountry('%{urlSaveCountry}','ARGENTINA')">BMS Staff</s:a></li>
                        <li><s:a id="ar_reportetds" action="download" namespace="/Reports/ReporteTDS" onclick="saveCountry('%{urlSaveCountry}','ARGENTINA')" >Download Reporte TDS</s:a></li>
                        <li><s:a id="ar_ongoing" action="main" namespace="/Protocols/Ongoing" onclick="saveCountry('%{urlSaveCountry}','ARGENTINA')" >Ongoing</s:a></li>
                        <li><s:a id="ar_pld" action="main" namespace="/Protocols/ProtocolLevelDoc" onclick="saveCountry('%{urlSaveCountry}','ARGENTINA')">Protocol Level Documents</s:a></li>
                        <li><s:a id="ar_scorecard" action="main" namespace="/Protocols/Scorecard" onclick="saveCountry('%{urlSaveCountry}','ARGENTINA')" >Scorecard</s:a></li>
                        <li><s:a id="ar_sld" action="main" namespace="/Protocols/SiteLevelDocuments" onclick="saveCountry('%{urlSaveCountry}','ARGENTINA')">Site Level Documents</s:a></li>
                        <li><s:a id="ar_siteStaffSelection" action="main" namespace="/Protocols/SiteStaffSelection" onclick="saveCountry('%{urlSaveCountry}','ARGENTINA')">Site Staff Selection</s:a></li>
                        <li><s:a id="ar_sitesSelection" action="main" namespace="/Protocols/SitesSelection" onclick="saveCountry('%{urlSaveCountry}','ARGENTINA')">Sites Selection</s:a></li>
                        <li><s:a id="ar_siteEquipmentSelection" action="main" namespace="/Protocols/SiteEquipmentSelection" onclick="saveCountry('%{urlSaveCountry}','ARGENTINA')">Site Equipment Selection</s:a></li>
                    </ul>
                </div>

                <div id="brazil" class="accordionButton">Brazil <s:property value="%{#session.statusbrazil}"/></div>
                <div id="contentBrazil" class="accordionContent">
                    <ul>
                        <li><s:a id="br_staff" action="main" namespace="/Protocols/Staff" onclick="saveCountry('%{urlSaveCountry}','BRAZIL')">BMS Staff</s:a></li>
                        <li><s:a id="br_reportetds" action="download" namespace="/Reports/ReporteTDS" onclick="saveCountry('%{urlSaveCountry}','BRAZIL')" >Download Reporte TDS</s:a></li>
                        <li><s:a id="br_ongoing" action="main" namespace="/Protocols/Ongoing" onclick="saveCountry('%{urlSaveCountry}','BRAZIL')" >Ongoing</s:a></li>
                        <li><s:a id="br_pld" action="main" namespace="/Protocols/ProtocolLevelDoc" onclick="saveCountry('%{urlSaveCountry}','BRAZIL')">Protocol Level Documents</s:a></li>
                        <li><s:a id="br_scorecard" action="main" namespace="/Protocols/Scorecard" onclick="saveCountry('%{urlSaveCountry}','BRAZIL')" >Scorecard</s:a></li>
                        <li><s:a id="br_sld" action="main" namespace="/Protocols/SiteLevelDocuments" onclick="saveCountry('%{urlSaveCountry}','BRAZIL')">Site Level Documents</s:a></li>
                        <li><s:a id="br_siteStaffSelection" action="main" namespace="/Protocols/SiteStaffSelection" onclick="saveCountry('%{urlSaveCountry}','BRAZIL')">Site Staff Selection</s:a></li>
                        <li><s:a id="br_sitesSelection" action="main" namespace="/Protocols/SitesSelection" onclick="saveCountry('%{urlSaveCountry}','BRAZIL')">Sites Selection</s:a></li>
                        <li><s:a id="br_siteEquipmentSelection" action="main" namespace="/Protocols/SiteEquipmentSelection" onclick="saveCountry('%{urlSaveCountry}','BRAZIL')">Site Equipment Selection</s:a></li>
                    </ul>
                </div>

                <div id="chile" class="accordionButton">Chile <s:property value="%{#session.statuschile}"/></div>
                <div id="contentChile" class="accordionContent">
                    <ul>
                        <li><s:a id="cl_staff" action="main" namespace="/Protocols/Staff" onclick="saveCountry('%{urlSaveCountry}','CHILE')">BMS Staff</s:a></li>
                        <li><s:a id="cl_reportetds" action="download" namespace="/Reports/ReporteTDS" onclick="saveCountry('%{urlSaveCountry}','CHILE')" >Download Reporte TDS</s:a></li>
                        <li><s:a id="cl_ongoing" action="main" namespace="/Protocols/Ongoing" onclick="saveCountry('%{urlSaveCountry}','CHILE')" >Ongoing</s:a></li>
                        <li><s:a id="cl_pld" action="main" namespace="/Protocols/ProtocolLevelDoc" onclick="saveCountry('%{urlSaveCountry}','CHILE')">Protocol Level Documents</s:a></li>
                        <li><s:a id="cl_scorecard" action="main" namespace="/Protocols/Scorecard" onclick="saveCountry('%{urlSaveCountry}','CHILE')" >Scorecard</s:a></li>
                        <li><s:a id="cl_sld" action="main" namespace="/Protocols/SiteLevelDocuments" onclick="saveCountry('%{urlSaveCountry}','CHILE')">Site Level Documents</s:a></li>
                        <li><s:a id="cl_siteStaffSelection" action="main" namespace="/Protocols/SiteStaffSelection" onclick="saveCountry('%{urlSaveCountry}','CHILE')">Site Staff Selection</s:a></li>
                        <li><s:a id="cl_sitesSelection" action="main" namespace="/Protocols/SitesSelection" onclick="saveCountry('%{urlSaveCountry}','CHILE')">Sites Selection</s:a></li>
                        <li><s:a id="cl_siteEquipmentSelection" action="main" namespace="/Protocols/SiteEquipmentSelection" onclick="saveCountry('%{urlSaveCountry}','CHILE')">Site Equipment Selection</s:a></li>
                    </ul>
                </div>

                <div id="colombia" class="accordionButton">Colombia <s:property value="%{#session.statuscolombia}"/></div>
                <div id="contentColombia" class="accordionContent">
                    <ul>
                        <li><s:a id="co_staff" action="main" namespace="/Protocols/Staff" onclick="saveCountry('%{urlSaveCountry}','COLOMBIA')">BMS Staff</s:a></li>
                        <li><s:a id="co_reportetds" action="download" namespace="/Reports/ReporteTDS" onclick="saveCountry('%{urlSaveCountry}','COLOMBIA')" >Download Reporte TDS</s:a></li>
                        <li><s:a id="co_ongoing" action="main" namespace="/Protocols/Ongoing" onclick="saveCountry('%{urlSaveCountry}','COLOMBIA')" >Ongoing</s:a></li>
                        <li><s:a id="co_pld" action="main" namespace="/Protocols/ProtocolLevelDoc" onclick="saveCountry('%{urlSaveCountry}','COLOMBIA')">Protocol Level Documents</s:a></li>
                        <li><s:a id="co_scorecard" action="main" namespace="/Protocols/Scorecard" onclick="saveCountry('%{urlSaveCountry}','COLOMBIA')" >Scorecard</s:a></li>
                        <li><s:a id="co_sld" action="main" namespace="/Protocols/SiteLevelDocuments" onclick="saveCountry('%{urlSaveCountry}','COLOMBIA')">Site Level Documents</s:a></li>
                        <li><s:a id="co_siteStaffSelection" action="main" namespace="/Protocols/SiteStaffSelection" onclick="saveCountry('%{urlSaveCountry}','COLOMBIA')">Site Staff Selection</s:a></li>
                        <li><s:a id="co_sitesSelection" action="main" namespace="/Protocols/SitesSelection" onclick="saveCountry('%{urlSaveCountry}','COLOMBIA')">Sites Selection</s:a></li>
                        <li><s:a id="co_siteEquipmentSelection" action="main" namespace="/Protocols/SiteEquipmentSelection" onclick="saveCountry('%{urlSaveCountry}','COLOMBIA')">Site Equipment Selection</s:a></li>
                    </ul>
                </div>

                <div id="peru" class="accordionButton">Peru <s:property value="%{#session.statusperu}"/></div>
                <div id="contentPeru" class="accordionContent">
                    <ul>
                        <li><s:a id="pr_staff" action="main" namespace="/Protocols/Staff" onclick="saveCountry('%{urlSaveCountry}','PERU')">BMS Staff</s:a></li>
                        <li><s:a id="pr_reportetds" action="download" namespace="/Reports/ReporteTDS" onclick="saveCountry('%{urlSaveCountry}','PERU')" >Download Reporte TDS</s:a></li>
                        <li><s:a id="pr_ongoing" action="main" namespace="/Protocols/Ongoing" onclick="saveCountry('%{urlSaveCountry}','PERU')" >Ongoing</s:a></li>
                        <li><s:a id="pr_pld" action="main" namespace="/Protocols/ProtocolLevelDoc" onclick="saveCountry('%{urlSaveCountry}','PERU')">Protocol Level Documents</s:a></li>
                        <li><s:a id="pr_scorecard" action="main" namespace="/Protocols/Scorecard" onclick="saveCountry('%{urlSaveCountry}','PERU')" >Scorecard</s:a></li>
                        <li><s:a id="pr_sld" action="main" namespace="/Protocols/SiteLevelDocuments" onclick="saveCountry('%{urlSaveCountry}','PERU')">Site Level Documents</s:a></li>
                        <li><s:a id="pr_siteStaffSelection" action="main" namespace="/Protocols/SiteStaffSelection" onclick="saveCountry('%{urlSaveCountry}','PERU')">Site Staff Selection</s:a></li>
                        <li><s:a id="pr_sitesSelection" action="main" namespace="/Protocols/SitesSelection" onclick="saveCountry('%{urlSaveCountry}','PERU')">Sites Selection</s:a></li>
                        <li><s:a id="pr_siteEquipmentSelection" action="main" namespace="/Protocols/SiteEquipmentSelection" onclick="saveCountry('%{urlSaveCountry}','PERU')">Site Equipment Selection</s:a></li>
                    </ul>
                </div>

            </div>
        </td>
    </tr>

</table>

<s:hidden id="hdargentina" name="hdargentina" value="%{#session.hdargentina}" ></s:hidden>
<s:hidden id="hdcolombia" name="hdcolombia" value="%{#session.hdcolombia}" ></s:hidden>
<s:hidden id="hdchile" name="hdchile" value="%{#session.hdchile}" ></s:hidden>
<s:hidden id="hdbrazil" name="hdbrazil" value="%{#session.hdbrazil}" ></s:hidden>
<s:hidden id="hdperu" name="hdperu" value="%{#session.hdperu}" ></s:hidden>
<s:hidden id="display" name="display" value="%{#session.display}" ></s:hidden>

<script type="text/javascript">
    $(document).ready(function() {

        $('div.accordionButton').click(function() {
            $('div.accordionContent').slideUp('normal');
            $(this).next().slideDown('normal');
        });
    });

    if( $('#hdargentina').val() == "false")
        $("#argentina").hide();
    if( $('#hdcolombia').val() == "false")
        $("#colombia").hide();
    if( $('#hdbrazil').val() == "false")
        $("#brazil").hide();
    if( $('#hdperu').val() == "false")
        $("#peru").hide();
    if( $('#hdchile').val() == "false")
        $("#chile").hide();

    if( $('#display').val() == "")
        $("#contentGeneral").show();
    else
        $("#contentGeneral").hide();

    if( $('#display').val() == "ARGENTINA")
        $("#contentArgentina").show();
    else
        $("#contentArgentina").hide();

    if( $('#display').val() == "COLOMBIA")
        $("#contentColombia").show();
    else
        $("#contentColombia").hide();

    if( $('#display').val() == "BRAZIL")
        $("#contentBrazil").show();
    else
        $("#contentBrazil").hide();

    if( $('#display').val() == "PERU")
        $("#contentPeru").show();
    else
        $("#contentPeru").hide();

    if( $('#display').val() == "CHILE")
        $("#contentChile").show();
    else
        $("#contentChile").hide();

</script>